import request from '@u/request';

const EXPRESS_API_HOST = '/api/admin/express'

const expressApi = {
    //快递列表
    expressList : params => {
        return request({
            url : EXPRESS_API_HOST,
            params,
            method : 'get'
        })
    },
    //快递删除
    expressDelete : params => {
        return request({
            url : EXPRESS_API_HOST,
            params,
            method : 'delete'
        })
    },
    //添加快递
    expressCreate : data => {
        return request({
            url : EXPRESS_API_HOST,
            data,
            method : 'post'
        })
    },
    //快递更新
    expressUpdate : data => {
        return request({
            url : EXPRESS_API_HOST,
            data,
            method : 'put'
        })
    },
}

export default expressApi;